class Fib
    def f(n)
        a = 1
        b = 1

        for i in 1 .. n do
            t = b
            b = a + b
            a = t
        end

        return a
    end
end
